import request from '@/utils/request';

export async function queryList(parentId?:number): Promise<any> {
  let url=`/region/list`;
  if(parentId){
    url=url+`?parentId=${parentId}`;
  }
  return request(url,{
    method:'GET'
  });
}
